package com.ezops.poc.validations.validators.converter;

/**
 * Exception class to indicate problem in conversion. Contains information about
 * the required type and the data which couldn't be converted.
 * <p>
 * Thrown by {@link ITypeConverter}
 * 
 * @author vgaurav
 * 
 */
public class ConversionException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String requiredType;

	private String data;

	public ConversionException(String type, String data, String message) {
		super(message);
		this.requiredType = type;
		this.data = data;
	}

	public String getRequiredType() {
		return requiredType;
	}

	public String getData() {
		return data;
	}

}
